﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using com.nm.Attributes;

namespace VerticaAPI.model
{
    public class DwShopHolidayRateModel
    {
        public class NeceModModel
        {
            [ParamDescription("店铺Code")]
            public string ShopCode { get; set; }
            [ParamDescription("日期")]
            public string GregorianDay { get; set; }
            
            [ParamDescription("补货系数")]
            public decimal? SuppleRate { get; set; }
        }

        public class NeceModel: NeceModModel
        {
            [ParamDescription("年份")]
            public long? HolidayYearv { get; set; }
            [ParamDescription("店铺名称")]
            public string ShopName { get; set; }
            [ParamDescription("日期类型")]
            public string DayType { get; set; }
            [ParamDescription("节日名称")]
            public string TypeName { get; set; }
            [ParamDescription("计算补货系数")]
            public decimal? CalcRate { get; set; }
            [ParamDescription("对应去年日期")]
            public string PastYearHoliDay { get; set; }
            [ParamDescription("去年同期取数类型")]
            public string CalcFlag { get; set; }
            [ParamDescription("去年同期销售额")]
            public decimal? PayAmount { get; set; }
            [ParamDescription("去年同期前七天日均销量")]
            public decimal? PastSevenAvgAmount { get; set; }
        }

        public class CreatModel: NeceModel
        {
            [ParamDescription("节日序号")]
            public long? HolidayNum { get; set; }
            [ParamDescription("读取时间")]
            public DateTime? LoadTime { get; set; }
            [ParamDescription("修改时间")]
            public DateTime? EtlDate { get; set; }
        }

        public class ModifyModel
        {
            [ParamDescription("列表")]
            public IList<NeceModModel> list { get; set; }
            [ParamDescription("补货系数")]
            public decimal? newSuppleRate { get; set; }
        }
    }
}
